/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.expert.AuthAnnouncementService;
import com.orange.modules.dao.manage.AuthAnnouncementRepository;
import com.orange.modules.entity.manage.AuthAnnouncement;

/**
 * @author gaogs
 *
 * 2016-12-15
 */
@Service
public class AuthAnnouncementServiceImpl implements AuthAnnouncementService {

	@Autowired
	private AuthAnnouncementRepository authAnnouncementRepository;
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthAnnouncementService#saveAuthAnnouncementInfo(com.orange.modules.entity.manage.AuthAnnouncement)
	 */
	@Override
	public void saveAuthAnnouncementInfo(AuthAnnouncement a) {
		authAnnouncementRepository.saveAuthAnnouncementInfo(a);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthAnnouncementService#queryAuthAnnouncementById(java.lang.String)
	 */
	@Override
	public AuthAnnouncement queryAuthAnnouncementById(String pid) {
		AuthAnnouncement a=authAnnouncementRepository.queryAuthAnnouncementById(pid);
		return a;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthAnnouncementService#deleteAuthAnnouncementInfo(java.lang.String)
	 */
	@Override
	public void deleteAuthAnnouncementInfo(String pid) {
		authAnnouncementRepository.deleteAuthAnnouncementInfo(pid);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthAnnouncementService#queryAuthSysDownloadInfoPage(java.util.Map)
	 */
	@Override
	public Page<AuthAnnouncement> queryAuthSysDownloadInfoPage(
			Map<String, String> map) throws SQLException {
		Page<AuthAnnouncement>page=authAnnouncementRepository.queryAuthSysDownloadInfoPage(map);
		return page;
	}

}
